<?php

namespace Admin\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * MyApp\testBundle\Entity\Type
 *
 * @ORM\Table(name="type")
 * @ORM\Entity
 */
class Type
{
    /**
     * @var integer $idtype
     *
     * @ORM\Column(name="idtype", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $idtype;

    /**
     * @var string $desc
     *
     * @ORM\Column(name="desc", type="string", length=10, nullable=true)
     */
    private $desc;
    
    public function getIdtype() {
        return $this->idtype;
    }

    public function setIdtype($idtype) {
        $this->idtype = $idtype;
    }

    public function getDesc() {
        return $this->desc;
    }

    public function setDesc($desc) {
        $this->desc = $desc;
    }

    public function toString()
    {
        echo $this->idtype.' '.$this->desc.'<br/>';
    }


}
